echo "Current clean $1"

build_done=0

if [ $1 = uboot ]
then
cd u-boot-2015.10-rc1/
export CROSS_COMPILE=arm-fsl-linux-gnueabi-
export ARCH=arm
make distclean
make clean
cd ../

build_done=1
fi

if [ $1 = kernel ]
then
cd linux-2.6.35.3/
make clean
fi

if [ $build_done ne 1 ]
then
echo "no find rule"
fi
echo "Clean $1 finish"